import { FormProps } from 'antd'

export interface IProFormProps extends FormProps {
  formItems: IFormItem[]
  formSlot?: ISlot
  itemStyle?: object
  colLayout?: object
  onFinish?: (form:any)=>void
}
export type Itype =
  | 'input'
  | 'password'
  | 'select'
  | 'datepicker'
  | 'rangepicker'

export interface IFormItem {
  type: Itype
  label: string
  name?: string
  rules?: any[]
  placeholder?: string
  // seleter
  options?: any[]
  // datepicker
  otherOptions?: any
  id?:number
}
export interface ISlot {
  header?: () => JSX.Element | null
  footer: () => JSX.Element | null
}
